<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
	<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-sclae=1.0,user-scalable=0">
	<link rel="stylesheet" type="text/css" href="css/base.css">
	<script src="js/h5.js"></script>
	<title>xuluo</title>
	<script>
		if (typeof history.pushState === "function") {
			history.pushState("jibberish", null, null);
			window.onpopstate = function () {
				history.pushState('newjibberish', null, null);
	            // 监听回退成功
	            // window.location.href = "/";
	            alert('回退成功')
            };
        }else {
          	var ignoreHashChange = true;
          	window.onhashchange = function () {
          		if (!ignoreHashChange) {
          			ignoreHashChange = true;
          			window.location.hash = Math.random();
          		}
          		else {
          			ignoreHashChange = false;   
          		}
          	};
        }
	</script>
</head>
<body>
	<h2>微信返回</h2>
	<script>
	
	</script>
</body>
</html>